package lex.title.maxthon;

import java.awt.Color;
import java.awt.Component;
import java.awt.Graphics;
import java.awt.Insets;
import javax.swing.border.AbstractBorder;
import javax.swing.plaf.UIResource;

public class MaxthonWindowBorder extends AbstractBorder implements UIResource {
	private static final MaxthonWindowBorder instance = new MaxthonWindowBorder();

	public static MaxthonWindowBorder getInstance() {
		return instance;
	}

	private Color main = new Color(198, 198, 198);

	public Insets getBorderInsets(Component c) {
		return new Insets(0, 1, 1, 1);
	}

	public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) {
		g.setColor(main);
		g.drawRect(0, 0, w - 1, h - 1);
	}
}
